#!/usr/bin/python3
# -*- coding:utf-8 -*-
# @Author    :Timo

from django.urls import path

from zanhu.news import views

app_name = "news"

urlpatterns = [
    path("list/", views.NewsListView.as_view(), name="list"),
    path("post-news/", views.post_news, name="post_news"),
    path("delete/<str:pk>/", views.NewsDeleteView.as_view(), name="delete_news"),
    path("like/", views.liked, name="like_post"),
    path("get-comment/", views.get_comment, name="get_comments"),
    path("post-comment/", views.post_comment, name="post_comment"),
]
